package HTMLParser.HTMLTag;

import Tree.Node;

/*******************************************************************************
 * This class simply represents any string of text in the HTML file.
 * @author James Johnstone
 * @version FINAL
 *******************************************************************************/
public class Text extends Node {

    private String text;

    /************************************************************************
     * Constructor for the Text class. All it has to do is grab the text and
     * store it appropriately.
     * @param String inText A string representing the text.
     ************************************************************************/
    public Text(String inText) {
        super("Text", "TEXT");
        text = inText;
    }

    /*******************************************************************
     * This method returns the text stored within this token.
     * @return A string representing the text stored within this token.
     *******************************************************************/
    public String getText() {
        return text;
    }
}
